package com.zxq.web.enums;

import javax.xml.crypto.dsig.CanonicalizationMethod;
import java.lang.management.PlatformLoggingMXBean;

public enum  EPlatformCmdType {
    UNKNOW(-1),
    CMD(0),
    NOTICE(1),
    RESULT(2);

    Integer value;
    EPlatformCmdType(int i) {
        this.value = i;
    }

    public Integer getValue() {
        return value;
    }

    public static  EPlatformCmdType getType(Integer v){
        EPlatformCmdType platformCmdType = EPlatformCmdType.UNKNOW;
        switch (v) {
            case 0:{
                platformCmdType = CMD;
            }
            break;
            case 1: {
                platformCmdType = NOTICE;
            }
            break;
            case 2: {
                platformCmdType = RESULT;
            }
            break;
        }
        return platformCmdType;
    }



}
